package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.ware.feign.fallback.OrderFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @create: 2024/9/13
 * @author: gyhe10
 * @description: 远程调用 order 服务的 feign 接口
 **/

@FeignClient(value = "gulimall-order", fallback = OrderFeignServiceFallback.class)
public interface OrderFeignService {

    @GetMapping("/order/order/status/{orderSn}")
    R getOrderByOrderSn(@PathVariable("orderSn") String orderSn);
}
